home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / getting there / Apps / MOO-1.7.6.src / inc / random.h < prev    next >
Text File  |  1994-11-02  |  2KB  |  60 lines

  1. /******************************************************************************
  2.   Copyright (c) 1992 Xerox Corporation.  All rights reserved.
  3.   Portions of this code were written by Stephen White, aka ghond.
  4.   Use and copying of this software and preparation of derivative works based
  5.   upon this software are permitted.  Any distribution of this software or
  6.   derivative works must comply with all applicable United States export
  7.   control laws.  This software is made available AS IS, and Xerox Corporation
  8.   makes no warranty about the software, its performance or its conformity to
  9.   any specification.  Any person obtaining a copy of this software is requested
  10.   to send their name and post office or electronic mail address to:
  11.     Pavel Curtis
  12.     Xerox PARC
  13.     3333 Coyote Hill Rd.
  14.     Palo Alto, CA 94304
  15.     Pavel@Xerox.Com
  16.  *****************************************************************************/
  17.  
  18. #include "config.h"
  19.  
  20. #if HAVE_LRAND48
  21.      extern long    lrand48(void);
  22.      extern void    srand48(long);
  23. #    define RANDOM    lrand48
  24. #    define SRANDOM    srand48
  25. #else
  26. #  include "my-stdlib.h"
  27. #  if HAVE_RANDOM
  28. #    define RANDOM    random
  29. #    define SRANDOM     srandom
  30. #  else
  31. #    define RANDOM    rand
  32. #    define SRANDOM    srand
  33. #  endif
  34. #endif
  35.  
  36. /* $Log: random.h,v $
  37.  * Revision 1.7  1993/08/04  00:04:28  pavel
  38.  * Moved declaration of random() and srandom() to my-stdlib.h.
  39.  *
  40.  * Revision 1.6  1992/10/23  23:03:47  pavel
  41.  * Added copyright notice.
  42.  *
  43.  * Revision 1.5  1992/10/21  03:02:35  pavel
  44.  * Converted to use new automatic configuration system.
  45.  *
  46.  * Revision 1.4  1992/10/17  20:50:13  pavel
  47.  * Generalized support for rand() replacements on systems that have better
  48.  * generators.
  49.  *
  50.  * Revision 1.3  1992/09/11  21:16:41  pavel
  51.  * Fixed to include config.h, to test USE_RANDOM.
  52.  *
  53.  * Revision 1.2  1992/08/14  00:38:20  pavel
  54.  * Changed declaration of srandom() to be compatible with IRIX 4.0; I sure hope
  55.  * this doesn't break any other ports...
  56.  *
  57.  * Revision 1.1  1992/07/20  23:23:12  pavel
  58.  * Initial RCS-controlled version.
  59.  */
  60.